import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class SudokuVergleichen 
{
	//Variablen
	static String sZeile = null;
	static int aSudokuLoesung[][] = new int[9][9];
	static char cSudokuLoesung[];
	
	
	
	
	//Methoden
	public static void leseSudokuLoesung (int leseZeile) throws IOException
	{
		FileReader fr = new FileReader("Loesung.txt");
		    BufferedReader br = new BufferedReader(fr);
		    for (int i = 1; i <= leseZeile; i++) 
		    {
		    	 sZeile = br.readLine();
			}
		    br.close();
	}
	
	public static void trenneSudokuZeile()
	{
		int k = 6;
		
		for (int i = 0; i < 9; i++) 
		{
			for (int j = 0; j < 9; j++) 
			{	
				aSudokuLoesung[i][j] = sZeile.charAt(k);
				k++;
			}
			;
		}
	}
	
	//Main
	public static void main(String[] args) throws IOException 
	{
	
		leseSudokuLoesung(4);
		trenneSudokuZeile();
		
		
		for (int i = 0; i < 9; i++) 
		{
			for (int j = 0; j < 9; j++) 
			{
				System.out.print(" "+aSudokuLoesung[i][j]+" ");
			}
			System.out.println(" ");
		}
		
		

	}

}
